<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="xx"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>购物车</title>
<link href="../dt/css/bootstrap.css" rel="stylesheet" type="text/css"
	media="all" />
<script src="../dt/js/jquery-1.7.2.js"></script>
<link href="../dt/css/style2.css" rel="stylesheet" type="text/css"
	media="all" />
 <link href="../dt/css/css1.css" rel="stylesheet" type="text/css">
<link href="../dt/css/font-awesome.min.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../dt/css/memenus.css" rel="stylesheet" type="text/css"
	media="all" />
<script type="text/javascript" src="../dt/js/memenu.js"></script>
<link href="../dt/css/common.css" rel="stylesheet" type="text/css" />
<link href="./dt./css/templatemo-style.css" rel="stylesheet">

<script>
	$(document).ready(function() {
		$(".memenu").memenu();
	});
</script>
<style type="text/css">
	.col-md-2 number{
		height:100px;
		
	}
	#a{
		width:500px;
		color:yellow;
		top:16px;
		left:746px;
	}
	#slogan{
		position:relative;
		top:83px;
		left:45px;
		height:80px;
		width:1000px;
		margin:auto;
	}
	#Navigation{
		 height:80px;
	}
	.Navigation_name > #jie{
		margin-top:20px;
	}
	#slogan_one{
		font-size:25px;
		margin-left:70px;
	}
	#slogan_two{
		font-weight:bolder;
		font-size:28px;
		color:red;
	}
</style>
<!-- slide -->
</head>
<body>
	<form action="/dt/shopping.do" method="get">
		<!--header-->
		<div id="top">
		<div class="Inside_pages">
			<div class="hd_top_manu clearfix">
				<ul class="clearfix">
					<li class="hd_menu_tit" data-addclass="hd_menu_hover"><a href="/dt/index.do">我的首页</a></li> 
					<xx:if test="${name != null || name != ''}">
					    	 <li class="hd_menu_tit" data-addclass="hd_menu_hover" style="color:black">${name}</li>
					    	  <li class="hd_menu_tit" data-addclass="hd_menu_hover"><a href="/dt/logout.do">退出</a></li>
					    </xx:if>	
					<li class="hd_menu_tit" data-addclass="hd_menu_hover"><a href="/dt/queryStateOrder.do">我的订单</a></li>
				</ul>
			</div>
		</div>
	</div>
	 <div class="Navigation" id="Navigation" style="height:80px">
				 <ul class="Navigation_name">
		            <li><img alt="" src="../dt/img/logo.jpg" style="width:100px;height:80px"></li>
		            <li id="jie"><a href="/dt/index.do" class="active"><i class="fa fa-home fa-fw"></i>我的首页</a></li>
					<li id="jie"><a href="/dt/setUser.htm"><i
							class="fa fa-bar-chart fa-fw"></i>修改信息</a></li>
		             <li id="jie"><a href="/dt/queryStateOrder.do?orderState=已支付"><i
							class="fa fa-database fa-fw"></i>订单中心</a></li>
					<li id="jie"><a href="/dt/queryTrade.do"><i
							class="fa fa-map-marker fa-fw"></i>交易记录</a></li>
					<li id="jie"><a href="/dt/shopping.do"><i
							class="fa fa-map-marker fa-fw"></i>我的购物车</a></li>
					<li id="jie"><a href="/dt/addCity.do"><i
							class="fa fa-map-marker fa-fw"></i>地址管理</a></li>
				 </ul>
		</div>
		<div class="header" >
				<div class="header-top">
					<div class="container">
						<div class="col-md-4 world"></div>
						<div class="col-md-4 logo">
						</div>
						<div class="clearfix"></div>
					</div>
				</div>	
				<div class="check-out" >
				<table border="0" cellspacing="0" cellpadding="1"
					style="width: 100%;" >
					<tr>
						<th>物品</th>
						<th>数量</th>
						<th>价格</th>
						<th>时间</th>
						<th>小计</th>
						<th>删除</th>
						<th>结账</th>
					</tr>
					<tr>
						<xx:forEach items="${queryStatrOrder}" var="qu">
							<tr>
								<td><xx:out value="${qu.goodName}"></xx:out></td>
								<td class="check"><input type="text"
									value="${qu.goodNumber}" onfocus="this.value='';"
									onblur="if (this.value == '') {this.value ='';}" id="in" onkeyup="ins()"></td>
								<td id="pre">${qu.goodPrice}</td>
								<td><xx:out value="${qu.orderTime}"></xx:out></td>
								<td  id="pres">${qu.goodPrice*qu.goodNumber}</td>
								<td><a href="/dt/delOrder.do?id=${qu.id }">删除</a></td>
								<td><a href="/dt/query.do?goodName=${qu.goodName}&id=${qu.id }&count=${qu.goodNumber}&nowPrice=${qu.goodPrice}" class=" to-buy">结账</a></td>
							</tr>
						</xx:forEach>
					</tr>

				</table>
				<div id="slogan">
					<span id="slogan_one"><b id="slogan_two">优</b> 品种优良</span>
					<span id="slogan_one"><b  id="slogan_two">绿</b> 绿色健康</span>
					<span id="slogan_one"><b  id="slogan_two">精</b> 米中精品</span>
					<span id="slogan_one"><b  id="slogan_two">香</b> 优选五谷香</span>
				</div> 
				</div>	
		</div>
	</form>
</body>
</html>